
<div class="tab-pane with-bg active" >
  <div class="panel-body" >

    <div  class="col-xs-12 col-sm-12 configFile_HeaderMargin">
      <div class="col-xs-12 col-sm-12">
        <div class="form-group col-xs-12 col-sm-5 "  style="padding: 0" >
          <label class="col-sm-3 col-xs-3 control-label text-right" for="field-1">请选择镜像 <span
              class="required_text">*</span></label>

          <div class="col-sm-9 col-xs-9">
            <select ng-model="sub.version" class="form-control" ng-options="tags for tags in imagesTags"
                    ng-disabled="op==='update'&& cfs.op=== undefined">
            </select>
          </div>
          <div class="clearfix"></div>


        </div>

        <div class="form-group col-xs-12 col-sm-7" style="padding: 0"><!--ng-if="configFileSets.length>0"-->
          <label class="col-sm-2 col-xs-3 control-label text-right copyVersion" for="field-1" >复制版本 <span
              class="required_text">*</span></label>

          <div class="col-sm-6 col-xs-6">
            <select ng-model="tag" class="form-control" ng-options="tags.imgVersion for tags in sub.versionList" >
            </select>
          </div>
          <div class="col-md-2 col-xs-2" style="    padding-left: 3px;">
            <button class="btn btn-info btn-single" ng-click="copyVersion(tag.files)" style="border-radius: 8px;padding:6px 25px"><!--<i class="fa-plus" ></i>-->复制
            </button>
          </div>

          <div class="clearfix"></div>


        </div>
      </div>
      <div class="col-xs-12 col-sm-12">
        <div class="form-group col-xs-9 col-sm-5 "  style="padding: 0" >
          <label class="col-sm-3 col-xs-4 control-label text-right" for="field-1" >配置文件路径 <span
              class="required_text">*</span></label>

          <div class="col-sm-9 col-xs-8" >
            <div style="width: 100%;position: relative">
              <input type="text" ng-required="string" ng-model="sub.filepath"
                     placeholder="/User/123" class="form-control" id="field-1" name="mount_pointIo" ng-pattern="mountTargetPathReg">
              <small class="text-red ng-binding" ng-show="form.mount_pointIo.$error.pattern" style="position: absolute;
    left: 0;
    bottom: -18px;">路径格式错误！格式例如:/data</small>
            </div>
          </div>


          <div class="clearfix"></div>
        </div>

        <div class="form-group col-xs-3 col-sm-7"   style="padding: 0"><!--ng-if="configFileSets.length>0"-->
          <div class="col-sm-2 col-xs-2" style="    padding-left: 3px;">
            <button class="btn btn-info btn-single" ng-click="addFile()" style="border-radius: 8px;padding:6px 25px"><!--<i class="fa-plus" ></i> -->添加</button>
          </div>
        </div>
      </div>


      </div>
    </div>

    <div class="form-group col-xs-12 col-sm-12">
      <div class="row listGrop_line" style="margin: 0 auto 5px;border-bottom-width:1px ;    color: #979898;">
        当前文件：<span>{{currentFile.filepath}}</span>
        <!--<button class="btn btn-orange btn-single" ng-click="resetFile(currentFile)" style="float:right"><i
            class="fa-reply"></i>&nbsp;撤销更改
        </button>-->

      </div>
      <div class="row">
        <ul class="list-group " >

          <li class="list-group-item" ng-class="{active:currentFile==file}" ng-repeat="file in files track by $index"
              ng-click="editFile(file)" title="{{file.filepath}}">{{file.filepath}}<span style="float:right" class="configDelIcon"><i class="fa-remove delete-icon"
                                                                                                                                      ng-click="deleteFile(file)"></i></span>
          </li>

        </ul>
        <ui-codemirror ui-codemirror-opts="editorOptions" ng-model="currentFile.value" class="list-codemirror" ></ui-codemirror>
      </div>
      <div class="listGrop_line" style="border-top-width: 1px;margin:5px auto 0;height: 1px"></div>
      <span style="color:#777;margin-left: 20%">
            Ps:参数替换格式为 {%=param%}
          </span>
    </div>


    <form class="form-horizontal">


    </form>

  </div>
</div>
